package com.settlement.system.model.entity.common;

import java.util.Date;
import java.io.Serializable;
import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.HeadFontStyle;
import com.alibaba.excel.annotation.write.style.HeadRowHeight;
import com.alibaba.excel.annotation.write.style.HeadStyle;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


/**
 * 唯品稽核关账设置
 * @author xiaochuan
 * @since 2020-11-19
 */
@Data
@ExcelIgnoreUnannotated
@HeadStyle(fillBackgroundColor = 9,fillForegroundColor = 9)
@HeadRowHeight(value = 20)
@HeadFontStyle(fontHeightInPoints = 14)
public class TblWpAuditCloseAccount extends BaseModel implements Serializable {


    /**
     * 零售店铺编码
     */
    @ExcelProperty(value = "店铺编码")
    @ApiModelProperty(value = "店铺编码")
    @NotNull(message = "店铺编码不能为空")
    private String shopNo;

    /**
     * 零售店铺名称
     */
    @ExcelProperty(value = "店铺名称")
    @ApiModelProperty(value = "店铺名称")
    private String shopName;

    /**
     * 初始日期
     */
    @ExcelProperty(value = "初始日期")
    @ApiModelProperty(value = "初始日期")
    @NotNull(message = "初始日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date initialDate;

    /**
     * 实际关账日期
     */
    @ExcelProperty(value = "实际关账日期")
    @ApiModelProperty(value = "实际关账日期")
    @NotNull(message = "实际关账不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date realCloseAccountDate;

    /**
     * 有效关账日期
     */
    @ExcelProperty(value = "有效关账日期")
    @ApiModelProperty(value = "有效关账日期")
    private Date validCloseAccountDate;

    /**
     * 需要回滚的关账日期
     */
    @ExcelProperty(value = "需要回滚的关账日期")
    @ApiModelProperty(value = "需要回滚的关账日期")
    private Date needRollbackAccountData;
}
